import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SWrestleRoom
    
    export  class SWrestleRoom extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SWrestleRoom();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.roomCode);
            arg1.writeInt(this.playerNum);
            arg1.writeInt(this.maxNum);
            arg1.writeInt(this.minMark);
            arg1.writeInt(this.maxMark);
            arg1.writeBool(this.open);
            arg1.writeInt(this.floatingGuideMark);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.roomCode = arg1.readInt();
            this.playerNum = arg1.readInt();
            this.maxNum = arg1.readInt();
            this.minMark = arg1.readInt();
            this.maxMark = arg1.readInt();
            this.open = arg1.readBool();
            this.floatingGuideMark = arg1.readInt();
            return;
        }

        public /* const */_type: int=600;

        public /* var */roomCode: int;

        public /* var */playerNum: int;

        public /* var */maxNum: int;

        public /* var */minMark: int;

        public /* var */maxMark: int;

        public /* var */open: Boolean;

        public /* var */floatingGuideMark: int;

        public static /* var */_regist: SWrestleRoom;
    }

            SWrestleRoom._regist = new SWrestleRoom(true);
        